package com.zdemo.address;

import java.util.Arrays;

public class PairValue {
	private final Integer i;
	private final Integer[] arr;

	private static PairValue pairValue;
	
	public static PairValue init(Integer i, Integer[] arr) {
		if(pairValue == null) {
			pairValue = new PairValue(i, arr);
		}
		return pairValue;
	}
	
	private PairValue(Integer i, Integer[] arr) {
		super();
		this.i = i;
		this.arr = Arrays.copyOf(arr, arr.length);
	}

	@Override
	public String toString() {
		return "PairValue [i=" + i + ", arr=" + Arrays.toString(arr) + "]";
	}

}
